<?php

if(isset($_GET['page']))
	$page = $_GET['page'];
else
	$page = "archive";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>WPlayer <?=$page?></title>
	<meta name="keywords" content="web player, media player, video streaming" />
	<meta name="description" content="media management system" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="header_wrapper">
	<div id="header">    
    	<div id="site_logo"></div>
    </div> <!-- end of header -->
</div> <!-- end of header wrapper -->

<div id="menu_wrapper">       
    <div id="menu">
      	<?php include("include/menu.php"); ?>
    </div> <!-- end of menu -->
</div> <!-- end of menu wrapper -->

<div id="content_wrapper">
    <div id="content">
        <div id="content_panel">
			<?php
			if($page == "" or $page == "archive")
				include("archive/archive.php");
			else if($page == "upload")
				include("upload/upload.php");
			else if($page == "embed")
				include("embed/embed.php");
			else if($page == "settings")
				include("settings/settings.php");
			else if($page == "help")
				include("help.php");
			else if($page == "contact")
				include("contact.php")
			?>
 		</div> <!-- end of content panel -->        
        <div class="cleaner"></div>
	</div> <!-- end of content -->
</div> <!-- end of content wrapper -->

<div id="footer_wrapper">
	<div id="footer">
        <div class="section_w920">
        	Copyright © 2011 <a href="#">WPlayer</a>
        </div>
        <div class="cleaner"></div>
    </div> <!-- end of footer -->
</div> <!-- end of footer -->

</body>

</html>